<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_builder.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:19 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$sysname} - 留言回复</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">

    <style>
        .droppable-active{background-color:#ffe!important}.tools a{cursor:pointer;font-size:80%}.form-body .col-md-6,.form-body .col-md-12{min-height:400px}.draggable{cursor:move}
    </style>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">

    <div class="row">
        <div class="col-sm-5" style="width: 100%">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>留言回复</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form role="form" class="form-horizontal m-t" action="{:U('User/answered')}" method="post" id="sysForm"  name="sysForm" enctype="multipart/form-data">



                        <div class="form-group draggable">
                            <label class="col-sm-3 control-label">用户名称：</label>
                            <div class="col-sm-9">
                                <input type="text" name="" readonly  style="background: #fff;border: none" value="{$username}" class="form-control" >
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>

                            <div class="form-group draggable">
                                <label class="col-sm-3 control-label">反馈标题：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="" readonly style="background: #fff;border: none"  value="{$title}" class="form-control" >
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>

                        <foreach name="msg" item="item">
                            <if condition="$item.content neq ''">
                                <div class="form-group draggable">
                                    <label class="col-sm-3 control-label">反馈内容：</label>
                                    <div class="col-sm-9">
                                        <textarea type="text" name=""  class="form-control" readonly style="background: #fff">{:date('Y-m-d H:i:s',$item[date])}

{$item.content}
                                        </textarea>
                                        <if condition="$item.img neq ''">
                                        <a href="/Uploads/{$item.img}"  target="view_window">
                                            <img src="/Uploads/{$item.img}" style="height: 80px;margin-top: 5px">
                                        </a>
                                        </if>
                                        <span class="help-block m-b-none"></span>
                                    </div>
                                </div>
                            </if>
                            <if condition="$item.answer neq ''">
                                <div class="form-group draggable">
                                    <label class="col-sm-3 control-label">回复内容：</label>
                                    <div class="col-sm-9">
                                        <textarea type="text" name=""  class="form-control" readonly style="background: #fff">{:date('Y-m-d H:i:s',$item[answer_date])}

{$item.answer}
                                        </textarea>
                                        <span class="help-block m-b-none"></span>
                                    </div>
                                </div>
                            </if>
                        </foreach>

                        <if condition="$status eq 1">
                            <div style="width: 100%;line-height: 35px;text-align: center;font-weight: 600">该反馈已关闭！</div>
                            <else/>
                            <div class="form-group draggable">
                                <label class="col-sm-3 control-label">回复：</label>
                                <div class="col-sm-9">
                                    <textarea type="text" name="answer" id="answer" class="form-control" style="background: #fff"></textarea>
                                    <span class="help-block m-b-none"></span>
                                </div>

                            </div>
                            <input class="btn btn-primary" type="hidden" name="msgid" value="{$msg_id}">
                            <div class="hr-line-dashed"></div>
                            <div class="form-group draggable">
                                <div class="col-sm-12 col-sm-offset-3">
                                    <input class="btn btn-primary" onclick="sub()" type="button" value="确认回复">
                                    <a class="btn btn-white" onclick="closefk({$msg_id})">关闭</a>
                                    <a class="btn btn-white" href="{:U('User/feedback')}">取消</a>
                                </div>
                            </div>
                        </if>


                    </form>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
   function sub(){
       var answer = document.getElementById("answer").value;
       if(!answer){
           alert("请填写回复内容")
       }else{
           document.getElementById("sysForm").submit();
       }
    }
    function closefk(msgid){
        var res = confirm('确定要关闭此条反馈吗？关闭后用户将不能再次回复该内容!');
        if(res == true){
            //window.location.href="index.php?m=Admin&c=User&a=closefk&msgid="+msgid;
            window.location.href="{:U('User/closefk')}"+"&msgid="+msgid;
        }
    }
</script>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script src="js/jquery-ui-1.10.4.min.js"></script>
<script src="js/plugins/beautifyhtml/beautifyhtml.js"></script>
<script>
    $(document).ready(function(){
        setup_draggable();
        $("#n-columns").on("change",function(){
            var v=$(this).val();
            if(v==="1"){
                var $col=$(".form-body .col-md-12").toggle(true);
                $(".form-body .col-md-6 .draggable").each(function(i,el){
                    $(this).remove().appendTo($col)
                });
                $(".form-body .col-md-6").toggle(false)
            }else{
                var $col=$(".form-body .col-md-6").toggle(true);
                $(".form-body .col-md-12 .draggable").each(function(i,el){
                    $(this).remove().appendTo(i%2?$col[1]:$col[0])});
                $(".form-body .col-md-12").toggle(false)}
        })
    })

</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_builder.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:20 GMT -->
</html>
